package com.zzz.service.impl;

import com.aaa.entity.GSort;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzz.service.GSortService;
import com.zzz.mapper.GSortMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 86176
* @description 针对表【g_sort(商品类别)】的数据库操作Service实现
* @createDate 2023-03-16 20:28:38
*/
@Service
public class GSortServiceImpl extends ServiceImpl<GSortMapper, GSort>
    implements GSortService{

    @Autowired
    private GSortMapper gSortMapper;
    @Override
    public Result addSort(GSort sort) {
        sort.setIsDeleted(0);
        sort.setStatus(2);
        int insert = gSortMapper.insert(sort);
        return new Result(2000,"添加成功",insert);
    }
}




